home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
rpg
/
crossfir.001
/
crossfir~
/
eutl
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-10-15
|
934b
|
49 lines
INSTALLROOT=/madhatter
INCLUDEDIR=$(INSTALLROOT)/include/eutl
LIBDIR=$(INSTALLROOT)/lib
TARGET=libeutl.a
SUBDIRS=include errlib tcplib xmalloc debuglib dynarray xfile chain-hash arglist
CC=gcc
DEST=libeutl.a
CFLAGS=-g -Wall
PASSTHROUGH= CC="$(CC)" CFLAGS="$(CFLAGS) -I../include"
all: $(TARGET)
$(TARGET): FORCE
@-if [ \! -f .normal-make ]; then\
$(MAKE) clean;\
fi
-rm .*-make >/dev/null 2>&1
touch .normal-make
for i in $(SUBDIRS); do\
(cd $$i;$(MAKE) $(PASSTHROUGH) arlib);\
done
ar ru $(TARGET) `cat */libfiles`
-ranlib $(TARGET)
libeutl_d.a:
$(MAKE) TARGET=libeutl_d.a CFLAGS=-g
check:
for i in $(SUBDIRS); do\
echo "Checking in $$i";\
(cd $$i;$(MAKE) $(PASSTHROUGH) check);\
done
clean:
-rm libeutl*.a
-rm *\~
for i in $(SUBDIRS); do\
(cd $$i;$(MAKE) clean);\
done
install:
cp $(TARGET) $(LIBDIR)/$(TARGET)
-ranlib $(LIBDIR)/$(TARGET)
-mkdir $(INCLUDEDIR)
cp include/* $(INCLUDEDIR)
FORCE: